// Decompiled by DJ v3.10.10.93 Copyright 2007 Atanas Neshkov  Date: 18/07/2011 0:33:28
// Home Page: http://members.fortunecity.com/neshkov/dj.html  http://www.neshkov.com/dj.html - Check often for new version!
// Decompiler options: packimports(3) 
// Source File Name:   MenuDaoImpl.java

package com.directorio.modelo.dao;

import com.directorio.modelo.bean.ParamMenu;
import com.directorio.modelo.dao.MenuDao;
import java.util.*;
import org.springframework.orm.ibatis.SqlMapClientTemplate;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

public class MenuDaoImpl extends SqlMapClientDaoSupport
    implements MenuDao
{

    public MenuDaoImpl()
    {
    }

    public List getMenuFromUsuario(int id)
        throws Exception
    {
        Map map = new HashMap();
        map.put("cod_tipo", Integer.valueOf(id));
        List listMenu = getSqlMapClientTemplate().queryForList("menuNS.getMenuUsuarioIbt", map);
        return listMenu;
    }

    public List getSubMenuFromUsuarioAndMenu(int tipo, int men)
        throws Exception
    {
        List listMenu = getSqlMapClientTemplate().queryForList("menuNS.getSubMenuUsuarioTipoIbt", new ParamMenu(tipo, men));
        return listMenu;
    }
}